package com.engine4cloud.tdf.supervision.dto.update;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 矫正对象奖惩信息
 *
 * @author wenjie
 * @date 2024-05-09 15:53:10
 */
@Data
@Schema(description = "矫正对象奖惩信息")
public class KhjcRewardPunishmentUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @NotNull(message = "主键不能为空")
    private Long id;
    /**
     * 奖惩时间
     */
    @Schema(description = "奖惩时间", example = "2020-01-01 00:00:00")
    @NotNull(message = "奖惩时间不能为空")
    private LocalDateTime jcsj;
    /**
     * 奖惩原因
     */
    @Schema(description = "奖惩原因", example = "01")
    @NotBlank(message = "奖惩原因不能为空")
    private String jcyy;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;
    /**
     * 文书材料
     */
    @Schema(description = "法律文书", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    private List<JzdxFileDTO> instrumentList;

    /**
     * 奖惩类别
     */
    @Schema(description = "奖惩类别", example = "[\"02\",\"0201\"]")
    @NotEmpty(message = "奖惩类别不能为空")
    private List<String> categoryList;

}